<?=form_open('news/addnews')?>

<table class="form">
    <tr>
        <td class="label" style="width: 150px;">Tiêu đề</td>
        <td><input type="text" name="ContentTitle" id="title"class="w350" value="<?=set_value('ContentTitle')?>"></td>
    </tr>
    <tr>
        <td class="label">Hình ảnh</td>
        <td><input type="text" name="ContentImg" class="w350" value="" id="hinhanh">
            <a href="<?=base_url()?>filemanager/index/hinhanh" id="addimages" class="cboxElement" title="Thêm File"> <img src="<?=base_url()?>templates/images/icon/attach.png" alt=""> </a></td>
    </tr>
    <tr>
        <td class="label">Danh mục</td>
        <td><select name="CatID" class="w200">
                <option value="0">Không xác định danh mục</option>
                <?
                foreach($postcat as $cat):
                $listsub = $this->news->get_Parent($cat->CatID);
                ?>
                <option value="<?=$cat->CatID?>">
                <?=$cat->CatName?>
                </option>
                <?
                foreach($listsub as $val):?>
                <option value="<?=$val->CatID?>"> |__
                <?=$val->CatName?>
                </option>
                <? endforeach;?>
                <? endforeach;?>
            </select></td>
    </tr>
    <tr>
        <td class="label">Hiển thị</td>
        <td><input type="checkbox" name="IsActive" value="1" checked="checked"></td>
    </tr>
    <tr>
        <td class="label">Nội dung ngắn</td>
        <td><textarea style="width: 500px;height: 100px;" name="ContentSmall"><?=set_value('ContentSmall')?>
</textarea></td>
    </tr>
    <tr>
        <td  class="label">Nội dung</td>
        <td><textarea class="full field" cols="" rows="" name="ContentBody" id="wysiwyg-advanced"><?=set_value('ContentBody')?>
</textarea></td>
    </tr>
    <tr>
        <td colspan="2" align="center"><input type="submit" name="bt_submit" value="" class="themmoi"></td>
    </tr>
</table>
<?=form_close()?>
